package ch05.visitor;

import ch05.Token;

/**
 * 赋值节点
 */

public class AssignNode extends StatNode {
    VarNode id;
    ExprNode value;
    public AssignNode(VarNode id, Token token, ExprNode value) {
        super(token);
        this.id = id;
        this.value = value;
    }


    @Override
    public void visit(VecMathVisitor visitor) {
        visitor.visit(this);
    }
}
